package com.magnusart.scrumppm.gui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;

class MainPlaceholder extends Composite
{

	private GridData data;
	private final LeftFrame leftFrame;
	private final MiddleFrame middleFrame;
	private final RightFrame rightFrame;

	MainPlaceholder( Composite parent ) {
		super( parent, SWT.None );
	}
	
	{ /* Initialization block */
		leftFrame = new LeftFrame( this );
		middleFrame = new MiddleFrame( this );
		rightFrame = new RightFrame( this );
		
		setLayout( new GridLayout( 3, false ) );
		
		data = new GridData( GridData.BEGINNING | GridData.FILL_VERTICAL | GridData.GRAB_VERTICAL);
		data.widthHint = 150;
		leftFrame.setLayoutData( data );
		
		data = new GridData( GridData.BEGINNING | GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL );
		data.widthHint = SWT.DEFAULT;
		data.minimumWidth = 400;
		middleFrame.setLayoutData( data );
		
		data = new GridData( GridData.BEGINNING | GridData.FILL_VERTICAL | GridData.GRAB_VERTICAL);
		data.widthHint = 150;
		rightFrame.setLayoutData( data );

	}

}
